<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    #demo{
      height: 200px;
      width: 200px;
      background-color: rebeccapurple;
      color: seashell;
    }
  </style>
</head>
<body>
  <div id="demo">请触摸</div>
  <script type="text/javascript">
    const demo = document.getElementById('demo')

    demo.addEventListener('touchstart',()=>{
      console.log('你开始摸我了！');
    })
    demo.addEventListener('touchmove',()=>{
      console.log('你在我身上移动呢！');
    })
    demo.addEventListener('touchend',()=>{
      console.log('你手指从我身上拿走了！');
    })
    demo.addEventListener('touchcancel',()=>{
      console.log('触摸被中断了！');
    })

    setTimeout(() => {
      alert('来电提示：10086')
    }, 3000);
  </script>
</body>
</html>